//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_aftersale.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: {
			Voucher_sub: '',
			Project_name: '',
			Type: '',
			Code: '',
			Project_class: '',
			Service_clsaa: '',
			Servicing_time: '',
			Client: '',
			Client_man: '',
			Client_man2: '',
			Post_mode: '',
			Post_number: '',
			Return_date: '',
			Return_date_required: '',
			Maintain_state: '',
			Contract_state: ''
		},
		searchFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '项目名称', field: 'Project_name', type: 'like' },
			{ key: '无条件客户', data: [], title: '客户', field: 'Client', type: 'select' },
			{ title: '联系人', field: 'Client_man', type: 'like' },
			{ type: 'group' },
			{ title: '设备型号', field: 'Type' },
			{ title: '设备编号', field: 'Code' },
			{ title: '设备返回人', field: 'Client_man2' },
			{ title: '邮寄方式', field: 'Post_mode' },
			{ title: '单号', field: 'Post_number' },
			{ title: '返厂日期', field: 'Return_date' },
			{ key: '维修状态', data: [], title: '维修状态', field: 'Maintain_state', type: 'select' },
			{
				key: '合同状态',
				data: [],
				title: '合同状态',
				field: 'Contract_state',
				type: 'select'
			},
			{ type: 'group' },
			{ key: '项目等级', data: [], title: '项目等级', field: 'Project_class', type: 'select' },
			{ key: '维修类别', data: [], title: '维修类别', field: 'Service_clsaa', type: 'select' },
			{ title: '需返还日期', field: 'Return_date_required', type: 'datetime' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Project_name', title: '项目名称', type: 'string' },
			{ field: 'Type', title: '设备型号', type: 'string' },
			{ field: 'Code', title: '设备编号', type: 'string' },
			{ field: 'Project_class', title: '项目等级', type: 'int', bind: { key: '项目等级', data: [] } },
			{ field: 'Service_clsaa', title: '维修类别', type: 'int', bind: { key: '维修类别', data: [] } },
			{ field: 'Servicing_time', title: '维修时间', type: 'int' },
			{ field: 'Client', title: '客户', type: 'int', bind: { key: '无条件客户', data: [] } },
			{ field: 'Client_man', title: '联系人', type: 'string' },
			{ field: 'Client_tel', title: '联系电话', type: 'string' },
			{ field: 'Client_man2', title: '设备返回人', type: 'string' },
			{ field: 'Post_mode', title: '邮寄方式', type: 'string' },
			{ field: 'Post_number', title: '单号', type: 'string' },
			{ field: 'Return_date', title: '返厂日期', type: 'datetime' },
			{ field: 'Return_date_required', title: '需返还日期', type: 'datetime' },
			{ field: 'Return_address', title: '返还地址', type: 'string' },
			{ field: 'Fault', title: '故障描述', type: 'string' },
			{ field: 'Solve_fault', title: '现场故障处理过程', type: 'string' },
			{ field: 'Maintain_state', title: '维修状态', type: 'int', bind: { key: '维修状态', data: [] } },
			{ field: 'Contract_state', title: '合同状态', type: 'int', bind: { key: '合同状态', data: [] } },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'Remark', title: '备注', type: 'string' }
		],
		table: {
			key: 'Aftersale',
			footer: 'Foots',
			cnName: '售后服务单',
			name: 'q_aftersale',
			url: '/q_aftersale/',
			sortName: 'Voucher_sub'
		}
	};
}
